dialog.onok = function () {
    editor.execCommand('savecontent');
    return this.oncancel();
}

dialog.oncancel = function () {
    delete editor.message;
    this._hide();
    this.autoReset = false;
    return false;
}

document.getElementById('text').innerText = '确定保存编辑的段落内容?';